home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp95 / diet12.exe / DIET120.DOC < prev    next >
Text File  |  1991-08-29  |  31KB  |  653 lines

  1. ***************************************************************************
  2.               An effective use of DIET version 1.20
  3.               ------  by Teddy Matsumoto ---------
  4. ***************************************************************************
  5.  
  6. 1. Let's try DIET!
  7. =================
  8.  
  9.    DIET.EXE is an executable file compressor as well as a file utility to
  10.    compress DATA files. 
  11.    DIET can compress executable files and can execute them from compressed
  12.    as LZEXE or PKLITE. You can save a great deal of your storage space.
  13.    What's REALLY NEW in this program is DIET compresses DATA files, too.
  14.    
  15.    Do we have to decompress the data file when we use them?
  16.    Yes, you have to, when you use DIET as a non-TSR program.
  17.    NO, when you let DIET stay as a TSR program.
  18.    DIET automatically decompresses data files for you!
  19.    DIET recompresses the files to the original if you wish!
  20.    Let us try some examples first.
  21.  
  22. 2. DIET is simple and is effective DIET.
  23. ========================================
  24.  
  25.    A rough classification of files of DOS may be in two categories,
  26.    namely executables and data files. The executables activate Data
  27.    files, in general.
  28.    The number of files on your disk of the later category is greater
  29.    in most of the cases than the former.
  30.    DIET can compress both categories of files, but these two categories
  31.    behave differently. Executable files are compressed with some self-
  32.    extracting header and decompressed on the memory to the original
  33.    format. Naturally there are executable files with overlays or
  34.    files which overwrite itself. Data files on the other hand, have to
  35.    be restored to the original form when they are referred from the
  36.    executable files. The process is carried out manually or by batch
  37.    mode ordinarily.
  38.  
  39.    The revolutionary idea of DIET is that the program takes care of
  40.    expanding and compressing automatically while you are not conscious
  41.    of what's really going on! If you are reading this file with DOS
  42.    command MORE.COM, then stop it and try
  43.      DIET MORE.COM  -------MORE.COM is compressed.
  44.      DIET DIET120.DOC -----this document is compressed.
  45.      DIET -Z     ----------let diet stay on memory. If you have EMM.SYS,
  46.                            then you will see diet uses 1 page of EMS.
  47.      MORE <DIET102.DOC --- to read the compressed file with compressed
  48.                            COM file, a pager.
  49.    How do you like it? Do not forget to type finally,
  50.      DIET -ZR
  51.    to let TSR part detached from your memory. If you're a man of curiosity,
  52.    try MEM.exe twice, when DIET is on the memory and off the memory to know
  53.    the size of TSR part of DIET.
  54.  
  55.    When DIET is stay resident on your memory, you can do your normal work
  56.    as if none of your file is compressed by diet. There were many files
  57.    with overlays which could not be compressed by LZEXE, PKLITE or by
  58.    earlier version of DIET. The TSR mode DIET will handle these files
  59.    easily without letting you be conscious of them being in compressed
  60.    form.
  61.  
  62.    DIET in TSR mode has a very strong power and control over the programs.
  63.    If you are anxious of any kind for the TSR mode, please start using
  64.    DIET with non-TSR mode, till you could get a full understanding of
  65.    its actions in TSR mode. DIET is worth using in non-TSR mode.
  66.  
  67. 3.Use of DIET, non-TSR mode.
  68. ============================
  69.    Type DIET to see all available options. 
  70.  
  71.    There are only 3 commands you have to remember in the non-TSR mode.
  72.    -L,-R and -RA are the all you need to know now.
  73.    Let us move to my directory c:\bin and type
  74.      DIET -l
  75.    to get the following list of files.
  76.  
  77.   TAIL.EXE       UUDECODE.EXE   UUENCODE.EXE   EMACS.EXE      EMACS.HLP    
  78.   BDIFF.EXE      BDIFF.DOC      BUPDATE.EXE    CSH.COM        LHA.EXE      
  79.   LOG.EXE        SETUPE.EXE     CFREQ.EXE      REV.EXE        SORT.MAN     
  80.  
  81.   After I typed
  82.    DIET *.*           ---------compress all the files!
  83.    DIET -R *.*        ---------restore non-executable files!
  84.   The same command line I type to see what happened.
  85.      DIET -L          --------- list dieted and undieted files!
  86.   In the following list, filenames headed with an asterisk *, show
  87.   their names in reverse color.
  88.  
  89.  *TAIL.EXE      *UUDECODE.EXE  *UUENCODE.EXE  *EMACS.EXE     EMACS.HLP    
  90.  *BDIFF.EXE      BDIFF.DOC     *BUPDATE.EXE   *CSH.COM       LHA.EXE      
  91.  *LOG.EXE        SETUPE.EXE     CFREQ.EXE      REV.EXE       SORT.MAN     
  92.  
  93.   DATA files in the above list are BDIFF.DOC EMACS.HLP and SORT.MAN.
  94.   The amount of space saved by compressing data files were:
  95.  
  96.    Compress 'BDIFF.DOC' ....Success! (15799 to 6659 bytes)
  97.    Compress 'SORT.MAN' ..   Success! (6139 to 2487 bytes)
  98.    Compress 'EMACS.HLP' ... Success! (8561 to 3663 bytes.
  99.  
  100.   You should know the amount of space you could save if you can
  101.   compress all of data files, 'doc','man' or 'hlp' extensions.
  102.   However, DATA files must be in uncompressed form when they are called
  103.   from PROGRAM. Consequently you have to save DATA files in the original
  104.   size when you are in non-TSR mode. Remember compress every thing and
  105.   restore DATA files, or compress only executables with '.EXE' and '.COM'  
  106.   extensions.
  107.  
  108.   The command -RA restores all the DIETed files including executables.
  109.   There were many questions about how to backup programs, or where is
  110.   -b switch of DIET. DIET never failed to restore original programs
  111.   except when your computer is off in the process of compressing or
  112.   recompressing. In such cases please look for files with __DIET__.???
  113.   temporary files. Your programs may be found among them.
  114.  
  115.  
  116.   4.DIET in TSR mode.
  117.   ===================
  118.   To compress DATA files after using them, you type 
  119.      DIET -Z -P
  120.   to get the information
  121.       
  122.    |Stayed on memory! (use EMS 1 page)
  123.    |  auto recompress : on (with messages)
  124.    |  temp. directory : D:\
  125.    
  126.   You may disable the action of DIET by
  127.    
  128.      DIET -ZD,
  129.    
  130.   and activate it again with
  131.    
  132.      DIET -ZA.
  133.  
  134.    |TSR function is activated!
  135.    |  auto recompress : on (with messages)
  136.    |  temp. directory : D:\
  137.    
  138.   DIET has a new feature from this version on to compress device drivers.
  139.   Suppose you have lines in your config.sys:
  140.  
  141.     |DEVICE=C:\DOS\SETVER.EXE
  142.     |DEVICE=C:\DOS\HIMEM.SYS
  143.     |DOS=HIGH
  144.   You may compress your device driver by -D switch.
  145.       DIET highmem.sys
  146.  
  147.     |Compress 'HIMEM.SYS' (as device driver) ...
  148.     |Success! (11552 to 7043 bytes)
  149.    
  150.   and still you can boot your system. This new ability of DIET was designed
  151.   primarily for large device drivers of Japanese language Front-End Process-
  152.   ors.
  153.  
  154.   EDIT.COM is not compressed because it is too small.
  155.   You may now try the auto-recompress feature of DIET.
  156.   Compress packing.lst with DIET and edit it with EDIT.COM.
  157.   Say add a single line. Then save the file and exit. You see a message,
  158.  
  159.     |Compress 'C:\DOS\PACKING.LST',
  160.     |Success! (2608 to 1278 bytes).
  161.  
  162.   The situation is different when you use other editors. You will get a 
  163.   backup file 'packing.bak' and new 'packing.lst' where backup file
  164.   remains in the compressed file and the newly edited file is expanded.
  165.   
  166.   There are two kinds of DATA files opened with mode read-open and with
  167.   read-write mode. DIET generate a temporary file for the read-open file
  168.   and erase it when program terminates. For read-write files, DIET tries
  169.   to recompress the edited file. Some editors copy the original and works
  170.   with buffers, and erase the original when program terminates. You must
  171.   find out whether your editor will recompress with TSR DIET or not.
  172.   EDIT.COM of MSDOS ver. 5.00 recompress under DIET. EDLIN.EXE will not
  173.   work for editing compressed file.
  174.  
  175.   In earlier version of DIET, ver.1.0x, we did not supply automated
  176.   compression. From ver.1.00, you may activate this function with
  177.   -P command. Resident part of DIET will try to compress the edited
  178.   file when Program terminates and frees its memory area. 
  179.   
  180. 3.Basic Functions of DIET.
  181. ==========================
  182.     There are 5 basic functions of DIET.exe,i.e.
  183.     To COMPRESS files:  -I,-D,-V,-B -P options;
  184.     To DECOMPRESS compressed files: -R -RA options;
  185.     To make DIET terminate and stay resident: -Z,-ZA,-ZD, -ZR options; and
  186.     To list files or to test for compressed: -L -H -! options.
  187.     To copy files with compressed or decompressing: -c option.
  188.  
  189.   Usage:  DIET [options] [file_names].
  190.   Options: -L,-R,-RA,-Z,-ZA,-ZD,-P,-M,-B,-V, -D, -C, -O, -T, -I, -J, -H,
  191.            -A, -! and -K.
  192.           You may use '-' of '/' as the switch-character as you prefer.
  193.           To specify multiple of tion, please insert a space between them,
  194.           like
  195.               DIET -Z -P -M.
  196.           If you do not specify option, then the function is to compress.
  197.           Or if you don't specify any option nor file name, then diet
  198.           will display the help screen.
  199.           You may specify options -B, -V, -I, -J, and -A under the
  200.           environmental string DIETOPT. By typeing in these options
  201.           later on your command line, you may toggle their functions.
  202.  
  203.    File_Names: You can't omit file name input except for -L option.
  204.           You can use wild cards and multiple filenames on the command
  205.           line.
  206.  
  207.   Usage 1.
  208.   ========
  209.    File Compression: 
  210.           If none of the options -L,-R,-RA,-Z,-ZA,-ZD,-C,-H or -!
  211.           is specified, Diet compresses specified file(s).
  212.  
  213.     COM/EXE files.
  214.     Files with extensions '.EXE' or '.COM' will be compressed with
  215.     a small header file added. The header will let the program extract
  216.     itself and let it execute. When -V option is specified, header will
  217.     not be attached. See the Overlay mode.
  218.  
  219.     Executable files without COM/EXE extension.
  220.     There are files with extension not '.COM' nor '.EXE' but seems
  221.     to be executable files. DIET will skip compressing them without
  222.     -V or -I option. But with these options, DIET compresses them as
  223.     executables.
  224.  
  225.     Device Drivers.
  226.     When a file starts with FF FF block, DIET will skip compressing.
  227.     These files can be compressed with -D option. If you use -D -I
  228.     options together, files starting not with FF FF can be compressed
  229.     as device drivers
  230.  
  231.     Any other files.
  232.     DIET compresses files not described above as DATA files. DIET can
  233.     access these files when DIET stays resident on memory.
  234.    
  235.           Different headers will be attached to compressed files
  236.           according to the extensions COM, EXE or SYS respectively.
  237.  
  238.     DIET will skip any files already compressed by DIET. DIET skips
  239.     files with extension '.LZH'. DIET will skip small files less
  240.     than a cluster unless you specify -B option.
  241.  
  242.     IMPORTANT NOTE. DIET will overwrite on the original files except
  243.           with -O or -C option. To save storage space DIET makes no backups
  244.           in principle. If you are not sure of the result, please take a
  245.           backup of the file(s). You will be assured of safety using DIET for
  246.           certain period, however.
  247.           Specifically, when you use other TSR programs, we strongly 
  248.           recommend to take backup of files.
  249.  
  250.           The dynamic Lempel-Ziv method adopted in the software may fail
  251.           to compress files compressed by other tools. The success or
  252.           failure in compression is determined by the number of clusters
  253.           a file needs for storage. If you use -B option, then success
  254.           depends on byte-count.
  255.  
  256.    Usage 2. File Decompression.
  257.    ============================
  258.           With -R or -RA option, DIET decompresses files
  259.           it had compressed. With '-R' option files with extensions
  260.           EXE/COM/SYS remain compressed and other files are restored.
  261.           Namely, this is to restore all the data files to the original.
  262.           With '-RA' option, you could restore all.
  263.  
  264.    Usage 3. TSR On/Off.
  265.    ====================
  266.           Option. '-Z' to load -ZR to remove from memory.
  267.           DIET -Z or -ZR
  268.           will announce either "stayed on memory' or "removed from memory".
  269.           When you compressed COMMAND.COM or when you compressed some
  270.           overlay files, you need DIET to be resident on, memory.
  271.           I recommend you to write a line "DIET -Z" in your autoexec.bat
  272.           file, when you use DIET frequently.
  273.  
  274.           DIET uses 1 page from EMS (Lotus-Microsoft) if it finds one. 
  275.           The size of the resident part is reduced by the EMM.sys utility.
  276.           After you type;
  277.             DIET -Z -P
  278.           you get the announce:
  279.             |Stayed on memory! (use EMS 1 page)
  280.             |   auto recompress : on (with messages)
  281.             |   temp. directory : D:\
  282.     
  283.     DIET -ZR  ---------------- remove resident part of DIET from memory.
  284.  
  285.     IMPORTANT NOTE. This is not only for DIET.
  286.           If you use multiple TSR programs, be careful to unload
  287.           following the reverse order they were loaded.
  288.  
  289.     Temporarily Enable/Disable TSR part of DIET.
  290.           DIET -ZD  disables resident part of DIET without unloading.
  291.           DIET -ZA  enables resident part of DIET without reloading.
  292.           The second command restores the resident DIET when an
  293.           interrupt was received from keyboard or from any other device's.
  294.           Remember this switch, when you pressed Ctrl-C or Ctrl-Break
  295.           while DIET had been acting.
  296.  
  297.     Automated re-Compress Facilities.
  298.          DIET -P-------------enable automated recompress.
  299.          DIET -P -M ---------enable automated recompress without message.
  300.          DIET -TD:\ ---------temporary files generated on D:\.
  301.                              You may specify the same by
  302.                              "set TMP=D:\"
  303.                              in your autoexec.bat.
  304.          Files retrieved by the DIET's resident part,
  305.          files opened by Write-Open or RW-open modes and
  306.          files overwritten on the old file by file-creation
  307.          can be re-compressed. You may need to know by making tests.
  308.  
  309.          This function is activated when dos-call INT4C is called.
  310.          This is when the program terminates. I don't want to interrupt
  311.          any program for the compression, nor I don't want to make the
  312.          resident part of DIET larger than the present. These are the
  313.          reasons for the limited facility of the present design.
  314.  
  315.     Usage 4 -L-H,-! Options.
  316.     =======================
  317.     [LIST files compressed with DIET,-L option.]
  318.          DIET -L
  319.          will list files compressed with DIET. You may skip wild card
  320.          for the option.
  321.  
  322.     [Check Files Compressed by DIET,-H option.]
  323.          DIET -H <file_name >.
  324.          Check the file if it is compressed by diet, and checks CRC
  325.          for the integrity. Displays:
  326.          |Compressed File Size with CRC.
  327.          |Original File Size and Type.
  328.          |If -K option is specified, report K option.
  329.  
  330.     [File Validation, -! option.] 
  331.          DIET -! -----------displays its own validation.
  332.          DIET.EXE is original file!
  333.  
  334.     Usage 5. Copy, -C option.
  335.     ==========================
  336.       Copy DIETED files may cause extra time. Since COMMAND.COM will
  337.       decompress the file first and copy to the directory and TSR DIET
  338.       will recompress the file again. You can use -C option to copy files
  339.       as compressed as they are. If DIET finds newer file(s) with same name(s), 
  340.       then DIET will skip the files(s).
  341.  
  342.    (1)   DIET -C<destination> <filenames> 
  343.  
  344.       When you store compressed files of Floppy disks, and use them
  345.       on a RAMDISK, you may use this method to restore files compressed.
  346.  
  347.       <Example 1.> To copy all the files on the current directory c:\
  348.        to Floppy Disk A:
  349.          DIET -CA:\ C:\*.*  
  350.         ~~~~~~~~~~~~~~~~~~~
  351.    (2)   DIET -RA -C<destination> <filenames>.
  352.     
  353.       When you keep files compressed on floppies and use them on a RAMDISK
  354.       in decompressed shape. You may copy file(s) with restoring to the
  355.       original size(s).
  356.  
  357.       <Example 2.> To copy compressed files on Floppy disk in drive A:,
  358.       to a RAMDRIVE C:\ in the original size for faster execution.
  359.  
  360.          DIET -RA -CC:\ A:\*.*
  361.          ~~~~~~~~~~~~~~~~~~~~~~~
  362.  
  363.     
  364.     [Backup Files, Output Directories, -O option.]
  365.          By default, DIET overwrites files by compressed equivalent with
  366.          the same name. So if you want to back up the files before you
  367.          apply DIET with -O option.
  368.  
  369.       <Example 1>. You are not on DRIVE A: and you want the compressed file
  370.          of alpha.dat on A: with the same name on your current directory:
  371.              DIET -O A:alpha.dat.
  372.   
  373.       <Example 2>. Compress the file alpha.dat on the current directory
  374.          compressed, and record it on the directory C:\TEMP:
  375.              DIET -OC:\temp\ alpha.dat
  376.                  ^          ^    
  377.          Please note the positions of the spaces and back slashes.
  378.  
  379.       <Example 3>. beta.dat has been compressed by DIET on the current
  380.          directory. Decompress this file and record it on the root directory
  381.          with the name alpha.dat:
  382.              DIET -R -O\alpha.dat beta.dat
  383.  
  384.     [Specify Directory for temporary files, -T option.]
  385.     
  386.          By default, DIET makes temporary files on the current directory.
  387.          It is recommended to specify the directory on which temporary
  388.          files to be made with the TSR mode. DIET makes temporary files
  389.          very frequently in TSR mode, consequently, if DIET could use
  390.          High Speed Memory Devices, DIET runs smooth and easy.
  391.          In case of nonresident mode, DIET compress and decompress on
  392.          memory, in principle, so you need not use this option.
  393.              DIET -Z -TD:\temp\  , where d: is supposed to be a RAMDISK.
  394.          DO NOT FORGET THE LAST "\" in this option.
  395.                                 ~~~
  396.     [Bytes Counts -B option.]
  397.          DIET says success in file compression if a cluster in the
  398.          storage supposes is saved. If you specify this option, you
  399.          can get Bytes Comparison for the success or fail of compression.
  400.          Since DIET overwrites files within clusters, this option is useful
  401.          when you are to store files in an archive like LHA with no compress
  402.          option.         
  403.  
  404.     [Overlay mode -V option.]
  405.          DIET compresses executable files with headers for self-extraction.
  406.          However you may compress an executable file without this header
  407.          by decompressing it as a temporary file and let resident DIET to
  408.          activate its execution if you have DIET resident in your memory. 
  409.          You can execute a huge file in overlay mode by this option, say 
  410.          a file of size more than 400KB. This mode has a side-effect in
  411.          the size of compressed executables hence the header is missing.
  412.  
  413.     [Device Drivers compression -D option.]
  414.          From this version on, you can compress device drivers, too.
  415.          Device driver is a file with '.SYS' extensions usually, and
  416.          is used with a line 'device=?????.sys' in your config.sys
  417.          file. DIET checks whether a file is a device driver by the 
  418.          leading FF FF block of the file. There are some device driver
  419.          without this block. You have to use -I option together with 
  420.          -D option.
  421.  
  422.     [Ignore warning -I option.]
  423.          DIET ordinarily stops compression for the files with overlays
  424.          when the size of the file in EXEHDR information is not the
  425.          same, with the message 'may be overlay files'. Since DIET can
  426.          take care of overlay files in the TSR mode, DIET may ignore
  427.          warnings and continue compression with '-I' option.
  428.          
  429.          Those who use DIET only in nonresident mode should refrain
  430.          from using this option. There are EXE files which are loaded
  431.          in high memory. DIET warns you with the same message as
  432.          overlays, but you can't expect to have a smooth action with
  433.          such executables.
  434.  
  435.     [Enable Automated re-compress option -P.]
  436.          Automated recompression is off by default. In order to get
  437.          your file compressed automatically to the compressed size,
  438.          you have to set this option.
  439.  
  440.     [No message option -M.]
  441.          If your screen is mixed up with the messages from
  442.          DIET activated as a child process from your editor etc.,
  443.          use this switch to make DIET silent.
  444.  
  445.     [Japanese Messages Outputs: DIET -J]
  446.          I am sorry that some witty succinct Japanese messages are
  447.          not imbedded in English messages. However, if you have
  448.          JDOS4.0 from IBM Japan, you may listen to the advice of
  449.          DR.Matsumoto on the present shape of your disk health status.
  450.   
  451.     [Read Only Attribute option, -A.]
  452.          This is only for the sake of safety. This will make all
  453.          the data files to have attribute read-only. If you are using
  454.          DIET in resident mode, your editors invoke diet to decompress
  455.          a compressed file, if not your data files are not compressed.
  456.          In case your editor opened a compressed file, when you don't
  457.          have DIET resident, your editor may not be able to quit from 
  458.          editing compressed binary file. A rare possibility, it might be.
  459.          This switch makes all the compressed file to be read-only.
  460.          You can not edit a file without changing its attribute.
  461.          Please note, if you copy a file from the original position,
  462.          then its file size will normally be restored to its original
  463.          size.
  464.  
  465.     [Kill temporary Files when you quit -K option]
  466.          Resident part of DIET opens a temporary file whenever a
  467.          compressed file is opened in read-mode. The temporary file
  468.          is erased whenever the program closes the file. However,
  469.          there are programs which open and close a file frequently,
  470.          e.g. a Help Message file, creating and erasing temporarily.
  471.          This type of file is very much time consuming for TSR DIET.
  472.          
  473.          The option -K should be used when you compress a file with
  474.          DIET. This is a new option, from this version DIET ver.1.20.
  475.          You must remember you need a fairy large amount of space for
  476.          your temporary file. The temporary file will be erased when
  477.          the program terminates.
  478.  
  479.          You can check whether your file is compressed with -K option
  480.          or not with -H option.
  481.  
  482. 4. Environmental Variables.
  483. ===========================
  484.       DIET from version 1.02x refers to the following environmental strings.
  485.  
  486.       DIETOFF  File_names for which DIET is disabled to act in resident
  487.                mode.
  488.  
  489.       DIETSIZE File_names which returns the real size of compressed
  490.                files when referenced.
  491.  
  492.       TMP      Specify directory to generate temporary files.
  493.  
  494.    ** NOTE reference to environmental string is possible only in MS-DOS 
  495.       ver3.xx or after.
  496.  
  497.  [DIETOFF] DIET in its resident mode has a powerful control over
  498.       files. In return, we have to be careful for its adversary actions.
  499.       For an example, when you copy compressed files:
  500.          COPY HIMEM.SYS
  501.       you will know HIMEM.SYS has the original uncompressed file size.
  502.       Of course you can type:
  503.           DIET -ZD
  504.           COPY HIMEM.SYS
  505.       to produce an exact copy of compressed size, yet it is better to
  506.           SET DIETOFF=COMMAND.COM;FC.COM;DUMP.EXE;XCOPY.EXE
  507.       to the effect typing, dumping and copying without re-
  508.       producing files to original sizes.
  509.       
  510.       Register names of program to DIETOFF to disable reproduction
  511.       of the uncompressed files. You don't have to specify full path
  512.       names. DIET just ignores them and is concerned with program
  513.       names only.
  514.  
  515.   [DIETSIZE] There are programs which read in data files only to the
  516.      size obtained by the Function Call AH=4Eh/4F/h. In earlier versions
  517.      of DIET, it fails to read the data properly for such programs.
  518.      This string refers to such programs.
  519.          SET DIETSIZE=**.COM;***.EXE
  520.      will enable **.COM and ***.EXE to read compressed MSG or HLP
  521.      files, and will disable them to return "Wrong file" messages.
  522.      Unfortunately, there are many files including SK.COM, which
  523.      checks data files with other methods for different versions.
  524.  
  525.   [TMP]  You may set this environmental string in your autoexec.bat
  526.      file as  'set TMP=d:\'. Command line -T option like 'DIET -TD:\TEMP'
  527.      overrides the setting.
  528.  
  529. 5. Concluding Remarks.
  530. ======================
  531.   [You can't use DIET for Norton's SD]
  532.      The resident part of DIET can take file handlers swapped from
  533.      the compressed original. If a program does not use a file-handle
  534.      and works directly on FAT table or FCB, then it is not activated        by resident DIET. Please type DIET -ZD when you use programs
  535.      with names like HDD Optimizer, Speed Disk, DOG or Harddisk manager.
  536.  
  537.   [File Open Error message.]
  538.      When DIET is resident in your memory, you may see a message
  539.      "Can't find abc.exe" even if the file exists. This is often
  540.      with the case when DIET cannot find enough space on your
  541.      temporary directory. Because some programs say "can't find"
  542.      when it fails to create a file. Please check your space if
  543.      you see this message.
  544.      From version 1.10 on, DIET will beeps at you when DIET fails
  545.      to decompress a file.
  546.  
  547.   [Executable Files with extension not COM/EXE.]
  548.      There are some executable files without the extensions EXE/COM.
  549.      DIET tries to differentiate such files from DATA files.
  550.      If you specify either -I or -V option to compress these files
  551.      as overlays or self-executables. Executable files are to have
  552.      EB, E9, E8, 0E, 1E, 06, BC, FA, FB, FC, or FD as leading bytes.
  553.      Naturally, there are DATA files with one of these as the
  554.      starting bytes.
  555.  
  556.   [Temporary File Names.]
  557.      Using DIET in resident mode, you will often see files with
  558.      names such as __DIET__.*. You will get these files when you
  559.      reset system or stop execution by Ctrl-Break. These are the
  560.      temporary files generated by DIET. You may or may not erase
  561.      those files, since they are under constant transactions.
  562.  
  563.   Acknowledgements.
  564.   =================
  565.   To all users, the version has been well tested by many 'brave' people
  566.   who were not afraid of uncountable backups, collisions with other 
  567.   TSR's or RESETings. However, I am sure, yet, of unexpected
  568.   bad timings with other resident programs or devices. Please be
  569.   warned against the use of this software with other resident programs
  570.   especially in its resident mode. The author can not be liable for
  571.   the damages caused by the use of this program. Backup your files
  572.   before testing every time you use with a new program.
  573.  
  574.   To Haruyasu Yoshizaki who found the vital bug which I could not find
  575.   up to the last moment,
  576.   to K.Okubo who introduced this software outside Japan,
  577.   and to my friends in Fgal/Flabo forums on Nifty Serve who
  578.   dared to hang on the earlier versions in spite of the hang overs
  579.   from so many Hang Up's.
  580.  
  581.   Our Distribution Policy.
  582.   ========================
  583.   The program together with the other packaged documents is copyrighted 
  584.   by Teddy Matsumoto. Package consists of DIET.exe, DIET120.DOC,& update.doc.
  585.   You may copy, distribute and use this program free of charge
  586.   under the conditions.
  587.    You must not charge for copying or distributions,
  588.    you use this for your personal purposes,
  589.    you are to follow up versions if you distribute, and
  590.    you must copy or distribute the entire package.
  591.  
  592.   How to contact the Author.
  593.   ==========================
  594.   Email to Teddy Matsumoto at GBG00230 on Nifty Serve.
  595.   Overseas Users may contact K.Okubo at one of the following:
  596.                              74100,2565  Compuserve, 
  597.                              K.Okubo Genie, 
  598.                              okubok@tansei.cc.u-tokyo.ac.jp
  599.  
  600. ===== REVISION HISTORY =====
  601.  
  602.  Version 1.00x    Beta Test version.
  603.  
  604.  Version 1.01a (02/01/91) The first TSR version.
  605.  
  606.  Version 1.01b (02/16/91) New routine added to detect the use of EMS.
  607.                           Some improvement for software hooked on
  608.                           disk I/O routine by function call int21h.
  609.  Version 1.02a (02/27/91) Use of EMS to minimize the resident part.
  610.                           Environment Variable DIETOFF is introduced.
  611.                           Any program registered in DIETOFF will disable
  612.                           DIET. Namely, copy, an interior command of
  613.                           COMMAND.COM, if registered as DIETOFF, will
  614.                           disable DIET while copying files. That is,
  615.                           you can copy files as compressed as they are.
  616.                           EX. set DIETOFF=COMMAND.COM;DIET.EXE;DUMP.EXE
  617.                           
  618.                           Another Environment Variable DIETSIZE now
  619.                           takes care of the files which load only a
  620.                           portion of the program as is indicated by
  621.                           size obtained from intAH 4Eh/4Fh.
  622.  
  623.                           New routine is supplied to distinguish character
  624.                           devices.
  625.  Version 1.02b (03/04/91) Environmental String "COMSPEC" had to be at
  626.                           the top of Environment Area, when COMMAND.COM
  627.                           is specified to DIETOFF.
  628.                           A bug fixed for the resident mode in which
  629.                           temporary file was not correctly generated to
  630.                           the directory specified by -T option.
  631.                
  632.  Version 1.10a (4/1/91)   Automated compression supported. -P option.
  633.                           -Z option does not toggle -ZR option added.
  634.                           -B option -V option added.
  635.                           New environmental strings DIETOPT and TMP.
  636.                           BEEP when DIET fails to create file.
  637.                           Function call AH=4B03 is taken into account.
  638.                           Can compress files with size more than 1MB.
  639.                           A bug fixed for -O option.
  640.  Version 1.10 (5/12/91)   Warn against the coexitent DIET versions.
  641.                           Temporary file remaining when the file is
  642.                           opened with file sharing mode. This bug is
  643.                           fixed. Check against executables without
  644.                           COM/EXE extension. DIET auto-checks -! option.
  645.                           (8/20/91)
  646.   ==================End of Diet120.doc=============================      
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.